import { resolve } from "path";
import { defineConfig } from "vite";

export default defineConfig({
    resolve: {
        alias: {
            "@": resolve(__dirname, "src"),
        },
    },
    build: {
        rollupOptions: {
            input: {
                redirect: resolve(__dirname, "index.html"),
                index: resolve(__dirname, "pages/index.html"),
                salesperson: resolve(__dirname, "pages/salesperson.html"),
                administrator: resolve(__dirname, "pages/administrator.html"),
                customer: resolve(__dirname, "pages/customer.html"),
            },
        },
    },
});
